package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 产品库发布记录业务对象 erp_collect_product_publish_task
 *
 * @author erp
 * @date 2023-06-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductPublishTaskBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 采集商品id
     */
    @NotNull(message = "采集商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long collectProductId;

    /**
     * 发布状态 1发布中 2 发布成功 3 发布失败
     */
    @NotNull(message = "发布状态 1发布中 2 发布成功 3 发布失败不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 卖家id
     */
    @NotNull(message = "卖家id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sellerId;

    /**
     * 发布时间
     */
   // @NotNull(message = "发布时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date publishDate;

    private String remark;


}
